<?php if(count($this->categories) > 0): ?>
<ul>
<?php foreach($this->categories AS $category): ?>
	<li><a <?php echo ($category->getId() == $this->catId) ? 'class="active"' : '' ?> href="<?php echo $this->urlToPage($this->config('pageIdCategories'), array('sherpa' => array('catId' => $category->getId()))) ?>"><?php echo $this->escape($category->name) ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>
